#! /bin/bash
#
rm -f myserver myserver-t
keytool -genkey -alias server -keyalg RSA -keypass serverkey -storepass serverkey -keystore myserver
keytool -certreq -alias server -keystore myserver -storepass serverkey -file server.csr
keytool -export -alias server -keystore myserver -storepass serverkey -file server.cer
keytool -import -alias server -keystore myserver-t -file server.cer
keytool -v -list -storepass serverkey -keystore myserver
keytool -v -list -storepass serverkey -keystore myserver-t
